Skip to content

This pull request introduces a PostgreSQL-backed product catalog to the NX AI FastAPI app, enhances the root endpoint to return product data, and adds supporting scripts and tests for database integration. #9

Merged
goldlabelapps merged 12 commits intomasterfrom
staging
Mar 19, 2026

Conversation

@goldlabelapps
Copy link
Copy Markdown
Owner

The most important changes are grouped below:

Database Integration & Product Catalog

  • Added a new dependency function get_db_connection in app/api/routes.py to manage PostgreSQL connections using environment variables.
  • Implemented the / root endpoint to query the product table and return a structured response with product data and metadata.
  • Added scripts for database management: app/seed_product_table.py to create and seed the product table, app/print_products.py to print product rows, and app/test_db_connection.py to test DB connectivity. [1] [2] [3]

Testing Enhancements

  • Updated tests/test_routes.py to mock database dependencies and verify that the root endpoint returns product data, including integration tests for returned rows and metadata.

Documentation & Versioning

  • Revised README.md to clarify production readiness, add instructions for running the app and tests, and update descriptions. [1] [2]
  • Updated version tracking in app/__init__.py and app/main.py to reflect the new release and ensure consistency across the app. [1] [2]

@goldlabelapps goldlabelapps merged commit 0a09b43 into master Mar 19, 2026
2 checks passed
@goldlabelapps goldlabelapps self-assigned this Mar 19, 2026
@github-project-automation github-project-automation Bot moved this to Done in Python Mar 19, 2026
@goldlabelapps goldlabelapps added this to the Proof of Concept milestone Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants